package com.example.mybatisplus.demo.easypoi.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
public class EnumSexStudentEntity implements Serializable {
    /**
     * id
     */
    @Excel(name = "id",orderNum = "0",width=10)
    private Integer id;
    /**
     * 学生姓名
     */
    @Excel(name = "学生姓名",orderNum = "1",width=25)
    private String name;
    /**
     * 学生性别
     */
    @Excel(name = "学生性别",orderNum = "2",width=25,replace = {"男_1","女_2"})
    private int sex;

    @Excel(name = "出生日期",orderNum = "3",width=50,format = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;

}